package com.zpf.feign;

import com.zpf.config.FeignCustomConfig;
import com.zpf.entity.User;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.netflix.feign.FeignClient;

/**
 * @InterfaceName: UserFeignCustomClient
 * @Description: TODO
 * @Autor: ZPF
 * @Date: 2021/1/15 9:33
 **/
@FeignClient(value = "provider-user", configuration = FeignCustomConfig.class, fallback = UserFeignCustomClientFallback.class)
public interface UserFeignCustomClient {

    @RequestLine("GET /simple/{id}")
    public User findById(@Param("id") Long id);

}